import errors from "restify-errors";
import { EntityRepository } from "typeorm";

import { Thesis } from "@src/apps/thesis/entities/item.entity"
import { ValidateRepository } from "@src/lib/db/postgres/validate.repository";

@EntityRepository(Thesis)
export class ThesisRepository extends ValidateRepository<Thesis> {
    async getAllThesis(): Promise<Thesis[]> {
        const users = await this.find();
        return users;
    }
}